import Vue from 'vue';
import VueRouter from 'vue-router';
import home from '../views/home.vue';
import list from '../views/list.vue';
import shopping from '../views/shopping.vue'
Vue.use(VueRouter);
const router=new VueRouter({
    routes:[
                {
                    path: '/home',
                    component:home
                },
                {
                    path: '/',
                    redirect: '/home'
                },
                {
                    path: '/list',
                    component:list
                },
                {
                    path: '/shopping',
                    component:shopping
                },
                {
                    path:'/Details',
                    name:"Details",
                    component:()=>import('../views/Details')
                }
    ]
})
export default router